

package com.jingdun.sport.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jingdun.sport.bean.model.*;
import com.jingdun.sport.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoomMapper extends BaseMapper<Room> {

    public void addRoom(Room room);

    public Room getRoomDetail(@Param("params") Map<String, Object> m);

    public List<GetPaginationRoomByPrizeTypeResp> getPaginationRoomByPrizeType(Page<GetPaginationRoomByPrizeTypeResp> page, @Param("params") Map<String, Object> m);

    public void updateRoom(Room room);

    public List<Room> getRoomList(@Param("params") Map<String, Object> m);

    List<Room> getUnfinishedRoomList(@Param("today") String today);

    List<Room> getRoomListByActivityId(@Param("activityIdSet") Set<Long> activityIdSet);

    Room newGetById(@Param("roomId") Long roomId);

    List<NewSportConfig> getByType(@Param("param") String param);

    List<ListTypesResponse> getListTypes(@Param("parent") Integer parent, @Param("pageParam") PageParam pageParam);

    List<TrendsChat> pageList(@Param("trendsId") Long trendsId, @Param("pageParam") PageParam pageParam);

    List<GetPaginationRoomByPrizeTypeResp> getPaginationRoomBySportCategory(Page<GetPaginationRoomByPrizeTypeResp> page, @Param("params") Map<String, Object> m);

    Map bonusPools();

    Map getUserUnWithdrawalSum();
}